package View.UIComponent
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class UIButton extends Sprite
	{
		public function UIButton(alis:Class)
		{
			addChild(setStyle(100,100,new Bitmap(new alis() as BitmapData)));
		}
		public function setStyle(_w:Number,_h:Number,bitmap:Bitmap):Bitmap
		{
			bitmap.width=_w;
			bitmap.height=_h;
			bitmap.x=-bitmap.width>>1;
			bitmap.y=-bitmap.height>>1;
			return bitmap;
		}
	}
}